import request from "utils/request";
//评论列表
export function comment_getListByCon(params = {}) {
  return request({
    url: 'api/comment/getListByCon',
    method: 'get',
    params
  })
}
//发布评论
export function comment_publishComment(data = {}) {
  return request({
    url: 'api/comment/publishComment',
    method: 'post',
    data
  })
}
//某一条评论
export function comment_getById(params = {}) {
  return request({
    url: 'api/comment/getById',
    method: 'get',
    params
  })
}
//某一条评论下的子评论
export function comment_sonComment(params = {}) {
  return request({
    url: 'api/comment/sonComment',
    method: 'get',
    params
  })
}
//我的评价列表 或 商品评价列表
export function evaluate_getListByCon(params = {}) {
  return request({
    url: 'api/evaluate/getListByCon',
    method: 'get',
    params
  })
}
//评价或追评
export function evaluate_giveEvaluate(data = {}) {
  return request({
    url: 'api/evaluate/giveEvaluate',
    method: 'post',
    data
  })
}
//删除评价
export function evaluate_delEvaluate(data = {}) {
  return request({
    url: 'api/evaluate/delEvaluate',
    method: 'post',
    data
  })
}
